/*
	conditionLanguage/common.h
	@author:Wolfhead
*/
#ifndef WOLV_CONDITION_LANGUAGE_DEFINE_H
#define WOLV_CONDITION_LANGUAGE_DEFINE_H

#include <string>

namespace wolv
{
namespace condition
{

enum operation
{
	UNKNOWN = 0,
	E,		//equal
	NE,		//not equal
	GT,		//greater than
	GET,	//greater or equal than
	LT,		//less than
	LET,	//less or equal than
	IN,		//in
};

std::string Op2String(int op);
int String2Op(const std::string& op);

#define SUCCESS (0)
#define PARSER_VARIABLE_NAME_ERROR (1)
#define PARSER_DATA_FORMAT_ERROR (2)
#define PARSER_OPERATION_FORMAT_ERROR (3)
#define PARSER_LINE_FORMAT_ERROR (4)
#define PARSER_LINE_WITHOUT_NAME (5)
#define PARSER_NAME_FORMAT_ERROR (6)
#define PARSER_ENF_OF_FILE (7)

#define SCRIPT_LINE_LABLE_NOT_FOUND (-1)
#define SCRIPT_LINE_NO_ACTION_FOUND (-2)
#define SCRIPT_VARIABLE_NOT_FOUND (-3)
#define SCRIPT_RECURSIVE_CALL (-3)


}
}



#endif

